import 'package:get/get.dart';

enum PrivacyType {
  onlySelf,
  allMembers,
  selectedMembers,
}

class Member {
  final String id;
  final String name;
  bool isSelected;

  Member({
    required this.id,
    required this.name,
    this.isSelected = false,
  });
}

class PrivacyState {
  // 当前选择的隐私类型
  final Rx<PrivacyType> privacyType = PrivacyType.selectedMembers.obs;
  
  // 成员列表
  final RxList<Member> members = <Member>[
    Member(id: '1', name: 'XXX', isSelected: false),
    Member(id: '2', name: 'XXX', isSelected: false),
    Member(id: '3', name: 'XXX', isSelected: true),
    Member(id: '4', name: 'XXX', isSelected: true),
  ].obs;
  
  // 获取选中的成员
  List<Member> get selectedMembers => members.where((m) => m.isSelected).toList();
} 